package cc.comac.mom.service;

import java.util.List;

import cc.comac.mom.bean.BusLogSearch;
import cc.comac.mom.entity.BusLogEntity;


/**
 * 
 * @author wuxingang
 *
 */
public interface BusLogService {
	/**
	 * 
	 * @param busLogEntity 默认存入mom_log表
	 * @return
	 */
	public int save(BusLogEntity busLogEntity);
	/**
	 * 
	 * @param busLogEntity 
	 * level;//日志等级，默认Info   msg;//消息实体,必填（json xml等） remark; // 备注 可以不填
	 * serviceName;//服务名称，可以不填 category; // 分类 ，默认BUSINESS
	 * @param tableName (xx_log)，如果表名以{_log}结尾，系统不做处理，如果不是，系统会在表名后加上{_log}
	 * @return
	 */
	public int save(BusLogEntity busLogEntity,String tableName);
	public int save(List<BusLogEntity> busLogs);
	public int save(List<BusLogEntity> busLogs,String tableName);
	
	public int delete(long id);
	public int delete(long id,String tableName);
	public int delete(BusLogSearch busLogSearch);
	public int delete(BusLogSearch busLogSearch,String tableName);
	
	public BusLogEntity getLog(long id);
	public BusLogEntity getLog(long id,String tableName);
	
	public List<BusLogEntity> getLogs(BusLogSearch busLogSearch);
	public List<BusLogEntity> getLogs(BusLogSearch busLogSearch,String tableName);
}
